package top.tangyh.lamp.care.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import top.tangyh.basic.base.mapper.SuperMapper;
import top.tangyh.lamp.care.entity.BPgRecord;
import top.tangyh.lamp.care.entity.BPgSrx;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * Mapper 接口
 * 评估评分输入项
 * </p>
 *
 * @author zqb
 * @date 2024-07-09 17:07:17
 * @create [2024-07-09 17:07:17] [zqb] [代码生成器生成]
 */
@Repository
public interface BPgSrxMapper extends SuperMapper<BPgSrx> {

    default List<BPgSrx> selectListByPgpfIdList(List<Long> pgpfIdList) {
        LambdaQueryWrapper<BPgSrx> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(BPgSrx::getPgId, pgpfIdList);
        return this.selectList(queryWrapper);
    }

    default List<BPgSrx> selectByIds(Set<Long> svoids){
        LambdaQueryWrapper<BPgSrx> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(BPgSrx::getId, svoids);
        return this.selectList(queryWrapper);
    }

}


